<template>
	<div class="nearby">
		<div class="s">
			<div class="head">
				<span>附近</span>
				<div class="box"></div>
				<button class="btn1" @click="go">BACK</button>
				<div class="btn2">
					<Icon type="md-search" size="19"/>
				</div>
				<div class="headrs" :style="steel">
					<List>
						<ListItem>
							<template slot="extra" >
								<button class="pos"  @click="fan">
									<Icon type="ios-arrow-back"/>
								</button>
							</template>
							<ListItemMeta/>
							<template slot="extra">
								<button @click="tiao">
									<Icon type="ios-arrow-forward"/>
								</button>
							</template>
						</ListItem>
					</List>
				</div>
			</div>
		</div>
		<div class="x">
			<div class="in">
				<div>
					<Dropdown trigger="click" class="el">
						<Button type="primary">
							全部类别
							<Icon type="ios-arrow-down"></Icon>
						</Button>
						<DropdownMenu slot="list">
							<DropdownItem>驴打滚</DropdownItem>
							<DropdownItem>炸酱面</DropdownItem>
						</DropdownMenu>
					</Dropdown>
					<Dropdown class="el" trigger="click">
						<Button type="primary">
							全部商区
							<Icon type="ios-arrow-down"></Icon>
						</Button>
						<DropdownMenu slot="list">
							<DropdownItem>驴打滚</DropdownItem>
							<DropdownItem>炸酱面</DropdownItem>
						</DropdownMenu>
					</Dropdown>
					<Dropdown class="el" trigger="click">
						<Button type="primary">
							智能排序
							<Icon type="ios-arrow-down"></Icon>
						</Button>
						<DropdownMenu slot="list">
							<DropdownItem>驴打滚</DropdownItem>
							<DropdownItem>炸酱面</DropdownItem>
						</DropdownMenu>
					</Dropdown>
				</div>

				<div class="li">
					<div class="xiang">
						<div class="left">
							<img src="/static/img/police.png" alt="">
						</div>
						<div class="right">

							<div class="one">
								<img :src="'/static/img/king'" alt="">
							</div>
							<div class="one">
								<img :src="'/static/img/king'" alt="">
							</div>
							<div class="two">
								<button>
									<img src="" alt="">
								</button>
								<button>
									<img src="" alt="">
								</button>
							</div>

						</div>
					</div>
					<div class="xiang">
						<div class="left"></div>
						<div class="right"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="foot">
			<div class="btn3" v-if="popup">
				<div class="btn4">
					<button>
						<Icon type="md-settings" size="35"/>
					</button>
				</div>
				<div class="btn">
					<button>
						<Icon type="md-person" size="35"/>
					</button>
				</div>
				<div class="btn4">
					<button>
						<Icon type="ios-reverse-camera" size="35"/>
					</button>
				</div>
			</div>
			<button class="btn7" :style="btn" @click="info"></button>
		</div>
	</div>
</template>

<script>
	export default {
		name: "Discount",
		data() {
			return {
				btn: "background-image: url('" + require("../../assets/2gt.png") + "')",
				steel: "background-image: url('" + require("../../assets/gtdm.png") + "')",
				popup: false,
				back:'',
			}
		},
		methods: {
			info() {
				if (this.popup) {
					this.popup = false
				} else {
					this.popup = true
				}
			},
			go(){
				return this.$router.push('/users/index')
			},
			tiao(){
				return this.$router.push('/users/discount')
			},
			fan(){
				return this.$router.push('/users/circle')
			}
		}
	}
</script>
<style lang="less">
	.nearby {
		max-width: 1024px;
		max-height: 1366px;
		margin: auto;

		.s {
			width: 100%;
			height: 221px;
			background-color: white;
			.headrs{
				width: 100%;
				height: 186px;
				background-repeat: no-repeat;
				background-size: 100% 100%;
				background-position: 50%;
				.ivu-list-item{
					padding-top: 73px;
				}
				.pos{
					position: absolute;
					left: 0;
				}
				button{
					background-color: rgba(221,221,221,0);
					border: 0px;
					color: #F6CF35;
				}
			}
		}
		.ivu-dropdown-rel{
		}
		.el {
			margin-left: 3.25%;
			width: 29%;
			text-align: center;
			margin-top: 10px;
			button{
				background-color:  #F27573;
				border:  #7C96A5 1px;
				width: 100%;
				text-align: center;
				font-family: 微软雅黑;
				font-size: 13px;

			}
		}
		.ivu-btn{
			border: 0px;
		}
		.ivu-input-group-append{
			border: 0px;
		}
		.in{
			overflow: auto;
		}
		.li {
			width: 100%;
			height: 360px;
			background-color: #F6CF35;
			overflow: auto;
			margin-top: 10px;
			.xiang {
				height: 115px;
				width: 100%;
				/*background-color: #B0C1D3;*/
				position: relative;

				.left {
					position: absolute;
					left: 2%;
					top: 8%;
					width: 30%;
					height: 92%;
					background-color: white;
					padding: 2%;

					img {
						width: 100%;
						height: 100%;
					}
				}

				.right {
					position: absolute;
					right: 2%;
					top: 8%;
					width: 64%;
					height: 92%;
					background-color: white;
					line-height: 1;
					border: 0px;

					.one {
						width: 50%;
						height: 75%;
						float: left;

						img {
							width: 100%;
							height: 100%;
						}
					}

					.two {
						height: 25%;
						width: 100%;
						text-align: right;
						background-color: white;
						button {
							width: 12%;
							height: 100%;
							background-color: rgba(0, 0, 0, 0);
							border: 0px;
							color: #F27473;
						}
					}

					.he {
						height: 100%;
					}

					.wei {
						width: 25px;
						height: 25px;
						background-color: white;
						background-repeat: no-repeat;
						background-size: 25px;
						text-align: center;
						border: 0px;
					}

					.wi {
						width: 100%;
						height: 100%;
					}

					.mag {
						position: absolute;
						bottom: 0;
					}
				}
			}
		}
		.x {
			width: 100%;
			height: 411px;

			.head {
				padding: 0;
			}

			.fol {
				height: 211px;
				width: 100%;
				.img2{
					width: 100%;
					height: 49%;
					margin:1% 0;
					float: left;
					border: 1px solid #F0F0F0;
					background-size: 100px;
					background-repeat: no-repeat;
					background-position: center;
				}
				.img1{
					border: 1px solid #F0F0F0;
					width: 32%;
					height: 100%;
					margin-left: 1%;
					float: left;
					background-size: 20px;
				}
				overflow: auto;
			}
		}

		.foot {
			height: 35px;
			color: #FEFE00;
			width: 100%;
			background: #F6CF35;
			font-size: 22px;
			text-align: center;
			line-height: 1.5;
			position: relative;

			.btn3 {
				margin: auto;
				margin-top: -90px;
				width: 50%;
				height: 125px;
				background-color: rgba(0, 0, 0, 0.5);
				float: left;
				margin-left: 25%;
				/*clear: both;*/
				border-radius: 50%;

				.btn4 {
					width: 33%;
					height: 75px;
					float: left;
					margin-top: 35px;

				}

				button {
					width: 80%;
					height: 50px;
					border-radius: 50%;
					line-height: 0px;
					background-color: white;
					border: 5px solid  #F6CF35;
					color:  #F6CF35;
				}

				.btn {
					margin-top: 10px;
					width: 33%;
					height: 75px;
					float: left;
				}
			}

			.btn7 {
				width: 60px;
				height: 60px;
				position: absolute;
				left: 42%;
				top: -25px;
				border-radius: 50%;
				border: 0;
				background-repeat: no-repeat;
				background-position: 50% 0;
				background-size: 68px 65px;
			}
		}

		.head {
			height: 35px;
			color: white;
			width: 100%;
			background: #F6CF35;
			font-size: 22px;
			text-align: center;
			/*padding-right: 10px;*/
			line-height: 1.5;
			position: relative;
		}

		.head > .btn2 {
			height: 25px;
			width: 25px;
			float: right;
			margin-top: 5px;
			margin-right: 10px;
			text-align: center;
			padding-top: 3px;
			line-height: 0px;
			background-color: white;
			color: #F6CF35;
			border-radius: 5px;
		}

		.box {
			width: 0;
			height: 0;
			margin-top: 7px;
			float: left;
			border-top: 11px solid transparent;
			border-bottom: 11px solid transparent;
			border-left: 11px solid transparent;
			border-right: 11px solid white;
			/*background-color:#FEFE00 ;*/
		}

		.clear {
			clear: both;
		}

		.btn1 {
			background: white;
			font-size: 10px;
			margin-top: 7px;
			margin-left: -1px;
			color: #F6CF35;
			height: 22px;
			padding: 0px 5px;
			border: 1px aliceblue solid;
			border-radius: 10%;
			cursor: pointer;
			float: left;
		}
	}

</style>